package cn.edu.gsau.info.service;

import cn.edu.gsau.info.models.Jiaocaizhuanzhu;
import cn.edu.gsau.info.models.Shenhe;
import cn.edu.gsau.info.models.Zhengmingcailiao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jinjiang
 * @since 2022-11-17
 */
public interface IJiaocaizhuanzhuService extends IService<Jiaocaizhuanzhu> {
    /*
     * @description:通过填报id查找模块记录
     * @author: liu-maobing
     * @date:
     * @param:
     * @return:
     **/
    public List<Jiaocaizhuanzhu> findByTianbaoId(Long tianbaoid);

    public List<Zhengmingcailiao> findByModuleIdAndRecoreId(Integer moduleId,long recoreId);

    public List<Jiaocaizhuanzhu> findByTianbaoIdAndStatus(long tianbaoid,String status);

    public List<Jiaocaizhuanzhu> findByTianbaoIdAndKeyWord(long tianbaoid,String keyword);

    public List<Jiaocaizhuanzhu> findByTianbaoIdAndKeyWordAndStatus(long tianbaoid,String keyword,String status);

    public Boolean updateRecoreId(String fileName,long id);

    public List<Zhengmingcailiao> findfileByrecoreIdAndModuleId(long recoreId,long moduleId);

    public IPage findByPage(long id,int pageIndex,int pagesize);

    public Boolean deleteCailiao(long id);

    public Boolean addCailiao(long id ,int moduleId, long recoreId,String fileName , String fileFullPath , String memo);

    public List<Shenhe> findallshenhe(int moduleId, long tijiaoId);

    public List<Jiaocaizhuanzhu> findByNode(String node);

    public List<Jiaocaizhuanzhu> searchByNode(String keyword,String node);

    public long findManagerId(long moduleId);

    public List<Shenhe> findShenhe(int moduleId,Long recoreId);

    public boolean tijiaoShenhe(Shenhe shenhe , Long recoreId);
}
